//配置层

//服务器的基础配置
exports.BASE_SERVER_OPTIONS = {
  HOST: "http://192.168.1.108",
  PORT: 3001,
};

//上传文件的静态目录路径
exports.UPLOAD_URL = {
  URL: "http://192.168.0.102:9000",
  // URL: 'http://120.24.162.40:9000'
};

//数据库配置
exports.MYSQL_OPTIONS = {
  DATABASE: "serverdb",
  USER: "root",
  PASSWORD: "1052",
  HOST: "localhost",
  DIALECT: "mysql",
  UNDERSCORED: true,
  TIMEZONE: "+08:00",
};

//邮件配置
exports.EMAIL_OPTIONS = {
  HOST: "smtp.qq.com",
  PORT: 465,
  SECURE: true,
  USER: "1052068837@qq.com",
  PASS: "qpreqlrjyrigbefh",
};

//验证码配置
exports.VALIDCODE_OPTIONS = {
  //5分钟有效
  EXPIRES: 5 * 60 * 1000,
};

//token配置
exports.TOKEN_OPTIONS = {
  //加盐
  SALT: "kang_$",
  //有效期
  EXPIRES: "1d",
};
